import ajax from "@/utils/request";
import '../mock/registerMock'

// 验证手机号
export function checkTelFn(data) {
    return ajax({
        url: '/register/checkTel',
        method: 'post',
        data
    })
}

// 获取验证码
export function getCodeFn() {
    return ajax({
        url: '/register/getCode',
        method: 'post',
    })
}

// 验证验证码
export function checkedCodeFn(data) {
    return ajax({
        url: '/register/checkedCode',
        method: 'post',
        data
    })
}

// 设置密码
export function setPasswordFn(data) {
    return ajax({
        url: '/register/setPassword',
        method: 'post',
        data
    })
}